  
package com.tueye.dao.impl.usermanager; 

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.tueye.base.util.IBaseHbnDao;
import com.tueye.base.util.Page;
import com.tueye.dao.usermanager.IUserDynamicDao;
import com.tueye.entity.user.UserDynamic;

/** 
 * @author 作者 yuyue E-mail: z_yuguangyue@126.com
 * @version 创建时间：Mar 27, 2009 6:41:32 PM 
 * Title:
 * Description:
 * ChangeDate:Mar 27, 2009 6:41:32 PM 
 * @ see 
 */
@Scope("prototype")
@Component("userDynamicDao")
public class UserDynamicDaoImpl implements IUserDynamicDao {

	
	@Autowired
	@Qualifier("baseHbnDao")
	private IBaseHbnDao  baseHbnDao;
	
	/* (non-Javadoc)
	 * @see com.tueye.dao.usermanager.IUserDynamicDao#saveorUpdateUserDynamic(com.tueye.entity.user.UserDynamic)
	 */
	@Override
	public void saveorUpdateUserDynamic(UserDynamic udc) {
		// TODO Auto-generated method stub
		baseHbnDao.saveOrUpdate(udc);
	}

	/* (non-Javadoc)
	 * @see com.tueye.dao.usermanager.IUserDynamicDao#showUserDynamic(java.lang.String, int, int)
	 */
	@Override
	public Page showUserDynamic(String hql, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return baseHbnDao.pagedQueryByHQL(hql, currentPage, pageSize, null);
	}

}
 